<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>品牌展示练习</title>
<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

body {
	font-size: 12px;
	text-align: center;
}

a {
	color: #04D;
	text-decoration: none;
}

a:hover {
	color: #F50;
	text-decoration: underline;
}

.SubCategoryBox {
	width: 600px;
	margin: 0 auto;
	text-align: center;
	margin-top: 40px;
}

.SubCategoryBox ul {
	list-style: none;
}

.SubCategoryBox ul li {
	display: block;
	float: left;
	width: 200px;
	line-height: 20px;
}

.showmore , .showless{
	clear: both;
	text-align: center;
	padding-top: 10px;
}

.showmore a , .showless a{
	display: block;
	width: 120px;
	margin: 0 auto;
	line-height: 24px;
	border: 1px solid #AAA;
}

.showmore a span {
	padding-left: 15px;
	background: url(img/down.gif) no-repeat 0 0;
}

.showless a span {
	padding-left: 15px;
	background: url(img/up.gif) no-repeat 0 0;
}

.promoted a {
	color: #F50;
}
h5{
	width: 50px;
	height: 200px;
	background-color: #FF3300;
}
div{
	width: 50px;
	height: 200px;
	background-color: #FF3300;
}
</style>
<script type="text/javascript" src="script/jquery-1.7.2.js"></script>
<script type="text/javascript">
	var i=0;
	$(function() {
		$("#two2").click(function (event){
			console.log(event)
			console.log("fjeo")
			alert("fe")
		})
$("h5").bind(onmouseover,function () {
	console.log("进来了"+i)
	i++;
})
		$("h5").mouseout(function () {
			console.log("出去了"+i);
			i++;
		})

		//alert("汝器毒，需升器！")
		$("div div a").click(function (){

			$("li:gt(5):not(:last)").toggle();
			if($("li:gt(5):not(:last)").is(":hidden")){
				$("div div a").text("显示全部品牌")
				$("div div").removeClass();
				$("div div").addClass("showmore");
				$("li:contains('索尼')").removeClass("promoted");
			}else {
				$("div div a").text("显示精简品牌")
				$("div div").removeClass();
				$("div div").addClass('showless');
				$("li:contains('索尼')").addClass("promoted");
			}
			return false;
		});

	});
</script>
</head>
<body>
	<div class="SubCategoryBox">
<!--		<iframe src="https:www.baidu.com" width="800px" height="800px">汝器毒，需升器！</iframe>-->
		<ul>
			<li><a href="#">佳能</a><i>(30440) </i></li>
			<li><a href="#">索尼</a><i>(27220) </i></li>
			<li><a href="#">三星</a><i>(20808) </i></li>
			<li><a href="#">尼康</a><i>(17821) </i></li>
			<li><a href="#">松下</a><i>(12289) </i></li>
			<li><a href="#">卡西欧</a><i>(8242) </i></li>
			<li><a href="#">富士</a><i>(14894) </i></li>
			<li><a href="#">柯达</a><i>(9520) </i></li>
			<li><a href="#">宾得</a><i>(2195) </i></li>
			<li><a href="#">理光</a><i>(4114) </i></li>
			<li><a href="#">奥林巴斯</a><i>(12205) </i></li>
			<li><a href="#">明基</a><i>(1466) </i></li>
			<li><a href="#">爱国者</a><i>(3091) </i></li>
			<li><a href="#">其它品牌相机</a><i>(7275) </i></li>
		</ul>
		<div class="showmore">
			<a href="more.html" id="one2"><span>显示全部品牌</span></a>
		</div>
		<h5 >点我啊</h5>
		<button>点击</button>
		<div id="two2">15</div>
	</div>
</body>
</html>

